package gaml.testing;

import gaml.error.GamlException;
import gaml.text.DefaultParserStoreFactory;
import gaml.text.TextNodeBridge;
import gaml.text.YamlParserStore;
import gaml.text.YamlText;
import gaml.yaml.YamlNode;
import gaml.yaml.ahchor.YamlAnchorCodeStore;

import org.junit.Test;


public class TextNodeBridgeTest {

	@Test
	public void testParseText () throws GamlException {

		YamlText text = new YamlText ().read ("");
		YamlParserStore store = DefaultParserStoreFactory.getStore (new YamlAnchorCodeStore ());
		YamlNode res = new TextNodeBridge (text, null).parseText (store).getNode ();

		System.out.println (res);
	}
}